/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package TubesAi;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.HashMap;
import java.util.Scanner;

/**
 *
 * @author acer
 */
public class Utility {
    private int $;//uang yang dimiliki
    private int H;//waktu operasi pabrik
    private int M;//mesin yang disewa
    private int N;//banyak mesin yang disewa dalam suatu waktu
    private int Y;//kapasitas truk pengambil mesin

    /*Spesifikasi Mesin*/
    private int[] T;
    private int[] W;
    private int[] S;
    private int[] P;
    private int[] I;
    private int[] C;
    private int[] R;
    private int[] Des;

    /*daftar mesin yang disewakan*/
    private HashMap daftarvendor;

    /*daftar harga produk*/
    private int daftarproduk;

    /*peta yang digunakan untuk perjalanan*/
    private char[][] peta;

    //getter
    public int getH(){return this.H;}
    public int getM(){return this.H;}
    public int getN(){return this.H;}
    public int getY(){return this.H;}
    //setter
    public void setH(int temp){this.H=temp;}
    public void setM(int temp){this.M=temp;}
    public void setN(int temp){this.N=temp;}
    public void setY(int temp){this.Y=temp;}

    //fungsi pembaca dari file eksternal
    public void readExternal() throws FileNotFoundException
    {
        Scanner scan = new Scanner(new File("input.txt"));

        this.$=scan.nextInt();//inisialisasi variabel
        this.H=scan.nextInt();
        this.M=scan.nextInt();
        this.N=scan.nextInt();
        this.Y=scan.nextInt();

        int nmesin;
        for(nmesin=0;nmesin<this.M;nmesin++)
        {
            this.T[nmesin]=scan.nextInt();
            this.W[nmesin]=scan.nextInt();
            this.S[nmesin]=scan.nextInt();
            this.P[nmesin]=scan.nextInt();
            this.I[nmesin]=scan.nextInt();
            this.C[nmesin]=scan.nextInt();
            this.R[nmesin]=scan.nextInt();
            this.Des[nmesin]=scan.nextInt();
        }
        int nvendor = scan.nextInt();
        int temp;
        for(temp=0;temp<nvendor;temp++)
        {
           this.daftarvendor.put(scan.nextLine(), scan.nextLine());
        }
        //for(temp=0;temp<)
    }
}
